home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / Xprof / xprof / Makefile < prev    next >
Makefile  |  1994-08-01  |  15KB  |  450 lines

  1. # Makefile generated by imake - do not edit!
  2. # $XConsortium: imake.c,v 1.74 92/12/02 21:32:49 rws Exp $
  3.  
  4. # -------------------------------------------------------------------------
  5. # Makefile generated from "Imake.tmpl" and <Imakefile>
  6. # $XConsortium: Imake.tmpl,v 1.160 92/11/18 14:11:25 rws Exp $
  7. #
  8. # Platform-specific parameters may be set in the appropriate <vendor>.cf
  9. # configuration files.  Site-specific parameters should be set in the file
  10. # site.def.  Full rebuilds are recommended if any parameters are changed.
  11. #
  12. # If your C preprocessor does not define any unique symbols, you will need
  13. # to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
  14. # "make World" the first time).
  15. #
  16.  
  17. # -------------------------------------------------------------------------
  18. # site-specific configuration parameters that need to come before
  19. # the platform-specific parameters - edit site.def to change
  20.  
  21. # site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
  22.  
  23. # -------------------------------------------------------------------------
  24. # platform-specific configuration parameters - edit sgi.cf to change
  25.  
  26. # platform:  $XConsortium: sgi.cf,v 1.19 91/07/28 22:39:45 rws Exp $
  27.  
  28. # operating system:                IRIX
  29.  
  30.         OPTIMIZER = -O2
  31.  
  32.            MANUSR = /usr/share/local
  33.  
  34.        CATMAN1DIR = $(MANUSR)/catman/u_man/cat1
  35.        CATMAN3DIR = $(MANUSR)/catman/p_man/cat3
  36.           MAN1DIR = $(MANUSR)/man/u_man/man1
  37.           MAN3DIR = $(MANUSR)/man/p_man/man3
  38.  
  39.        MANPACKAGE = /X11
  40.  
  41. # $XConsortium: sgiLib.rules,v 1.6 92/05/29 17:05:46 rws Exp $
  42.  
  43. # -------------------------------------------------------------------------
  44. # site-specific configuration parameters that go after
  45. # the platform-specific parameters - edit site.def to change
  46.  
  47. # site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
  48.  
  49.             SHELL =     /bin/sh
  50.  
  51.               TOP = .
  52.       CURRENT_DIR = .
  53.  
  54.                AR = ar cq
  55.   BOOTSTRAPCFLAGS = $(OPTIMIZER)
  56.                CC = cc
  57.                AS = as
  58.  
  59.          COMPRESS = compress
  60.               CPP = /lib/cpp $(STD_CPP_DEFINES)
  61.     PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
  62.           INSTALL = bsdinst
  63.                LD = ld
  64.               LEX = lex
  65.              YACC = yacc
  66.              LINT = lint
  67.       LINTLIBFLAG = -o
  68.          LINTOPTS = -ax
  69.                LN = ln -s
  70.  
  71.                MV = mv
  72.                CP = cp
  73.  
  74.                RM = rm -f
  75.             TROFF = psroff -t
  76.          MSMACROS = -ms
  77.               TBL = tbl
  78.               EQN = eqn
  79.      STD_INCLUDES = -I$(ROOT)/usr/include -I
  80.   STD_CPP_DEFINES = -DXML -DSYSV -DSVR4
  81.       STD_DEFINES = -DXML -DSYSV -DSVR4
  82.  EXTRA_LOAD_FLAGS =
  83.   EXTRA_LDOPTIONS = -call_shared
  84.   EXTRA_LIBRARIES =     -L -L$(ROOT)/lib -L$(ROOT)$(USRLIBDIR)
  85.              TAGS = ctags
  86.  
  87.     SHAREDCODEDEF =
  88.          SHLIBDEF =
  89.  
  90.     PROTO_DEFINES = -DFUNCPROTO=7 -DNARROWPROTO
  91.  
  92.      INSTPGMFLAGS =
  93.  
  94.      INSTBINFLAGS = -m 0755
  95.      INSTUIDFLAGS = -m 4755
  96.      INSTLIBFLAGS = -m 0644
  97.      INSTINCFLAGS = -m 0444
  98.      INSTMANFLAGS = -m 0444
  99.      INSTDATFLAGS = -m 0444
  100.     INSTKMEMFLAGS = -m 2755 -g sys
  101.  
  102.       CDEBUGFLAGS = $(OPTIMIZER)
  103.         CCOPTIONS = -xansi -float -KPIC -G 0 -Wf,-XNh2000
  104.  
  105.       ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES)
  106.        ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(DEFINES)
  107.            CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
  108.         LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
  109.  
  110.            LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  111.  
  112.         LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(EXTRA_LDOPTIONS) $(LOCAL_LDFLAGS)
  113.  
  114.    LDCOMBINEFLAGS = -r
  115.       DEPENDFLAGS =
  116.  
  117.         MACROFILE = sgi.cf
  118.            RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
  119.  
  120.     IMAKE_DEFINES =
  121.  
  122.          IRULESRC = $(CONFIGDIR)
  123.         IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
  124.  
  125.      ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
  126.             $(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
  127.             $(IRULESRC)/$(MACROFILE)  \
  128.             $(EXTRA_ICONFIGFILES)
  129.  
  130. # -------------------------------------------------------------------------
  131. # X Window System Build Parameters
  132. # $XConsortium: Project.tmpl,v 1.152 92/08/10 17:47:45 eswu Exp $
  133.  
  134. # -------------------------------------------------------------------------
  135. # X Window System make variables; this need to be coordinated with rules
  136.  
  137.           PATHSEP = /
  138.         USRLIBDIR = /usr/lib
  139.          SHLIBDIR = /usr/lib
  140.            BINDIR = /usr/bin/X11
  141.           INCROOT = /usr/include
  142.      BUILDINCROOT = $(TOP)
  143.       BUILDINCDIR = $(BUILDINCROOT)/X11
  144.       BUILDINCTOP = ..
  145.            INCDIR = $(INCROOT)/X11
  146.            ADMDIR = /usr/adm
  147.            LIBDIR = $(USRLIBDIR)/X11
  148.         CONFIGDIR = $(LIBDIR)/config
  149.        LINTLIBDIR = $(USRLIBDIR)/lint
  150.  
  151.           FONTDIR = $(LIBDIR)/fonts
  152.          XINITDIR = $(LIBDIR)/xinit
  153.            XDMDIR =             /var/X11/xdm
  154.            TWMDIR = $(LIBDIR)/twm
  155.           MANPATH = /usr/share/man
  156.     MANSOURCEPATH = $(MANPATH)/man
  157.         MANSUFFIX = 1
  158.      LIBMANSUFFIX = 3
  159.            MANDIR = $(CATMAN1DIR)$(MANPACKAGE)
  160.         LIBMANDIR = $(CATMAN3DIR)$(MANPACKAGE)
  161.            NLSDIR = $(LIBDIR)/nls
  162.         PEXAPIDIR = $(LIBDIR)/PEX
  163.       XAPPLOADDIR = $(LIBDIR)/app-defaults
  164.        FONTCFLAGS = -t
  165.  
  166.      INSTAPPFLAGS = $(INSTDATFLAGS)
  167.  
  168.             IMAKE = imake
  169.            DEPEND = makedepend
  170.               RGB = rgb
  171.  
  172.             FONTC = bdftopcf
  173.  
  174.         MKFONTDIR = mkfontdir
  175.         MKDIRHIER =     /bin/sh $(BINDIR)/mkdirhier
  176.  
  177.         CONFIGSRC = $(TOP)/config
  178.        DOCUTILSRC = $(TOP)/doc/util
  179.         CLIENTSRC = $(TOP)/clients
  180.           DEMOSRC = $(TOP)/demos
  181.            LIBSRC = $(TOP)/lib
  182.           FONTSRC = $(TOP)/fonts
  183.        INCLUDESRC = $(TOP)/X11
  184.         SERVERSRC = $(TOP)/server
  185.           UTILSRC = $(TOP)/util
  186.         SCRIPTSRC = $(UTILSRC)/scripts
  187.        EXAMPLESRC = $(TOP)/examples
  188.        CONTRIBSRC = $(TOP)/../contrib
  189.            DOCSRC = $(TOP)/doc
  190.            RGBSRC = $(TOP)/rgb
  191.         DEPENDSRC = $(UTILSRC)/makedepend
  192.          IMAKESRC = $(CONFIGSRC)
  193.          XAUTHSRC = $(LIBSRC)/Xau
  194.           XLIBSRC = $(LIBSRC)/X
  195.            XMUSRC = $(LIBSRC)/Xmu
  196.        TOOLKITSRC = $(LIBSRC)/Xt
  197.        AWIDGETSRC = $(LIBSRC)/Xaw
  198.        OLDXLIBSRC = $(LIBSRC)/oldX
  199.       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  200.  
  201.       BDFTOPCFSRC = $(FONTSRC)/clients/bdftopcf
  202.  
  203.      MKFONTDIRSRC = $(FONTSRC)/clients/mkfontdir
  204.          FSLIBSRC = $(FONTSRC)/lib/fs
  205.     FONTSERVERSRC = $(FONTSRC)/server
  206.      EXTENSIONSRC = $(TOP)/extensions
  207.          XILIBSRC = $(EXTENSIONSRC)/lib/xinput
  208.       XTESTLIBSRC = $(EXTENSIONSRC)/lib/xtest
  209.         PEXLIBSRC = $(EXTENSIONSRC)/lib/PEXlib
  210.       PHIGSLIBSRC = $(EXTENSIONSRC)/lib/PEX
  211.       XNMBXLIBSRC = $(EXTENSIONSRC)/lib/nmbx
  212.  
  213. PICFLAGS = -G 0
  214.  
  215. # Supporting dynamic shared object libraries for IRIX 5.0
  216.  
  217. # These defines mimic what is in /usr/include/make/commondefs
  218. # (Should be in sync with Revision 1.99)
  219.  
  220.        DSOREGFILE = $$ROOT/usr/lib/so_locations
  221.       DSOSTARTOPT = -update_registry $(DSOREGFILE)
  222.        DSONAMEOPT = -soname $@
  223.        DSOVERSION = sgi1.0
  224.     DSOVERSIONOPT = -set_version $(DSOVERSION)
  225.         LDDSOOPTS = -elf -shared $(VLDDSOOPTS) $(LLDDSOOPTS) $(GLDDSOOPTS)
  226.        GLDDSOOPTS = -all $(DSOSTARTOPT) $(DSONAMEOPT) $(DSOVERSIONOPT)
  227.  
  228.       DEPXLIBONLY =  $(USRLIBDIR)/libX11.so$(SOXLIBREV)
  229.           DEPXLIB = $(DEPEXTENSIONLIB) $(DEPXLIBONLY)
  230.          XLIBONLY =  -lX11
  231.              XLIB = $(EXTENSIONLIB) $(XLIBONLY)
  232.  
  233.       DEPXTOOLLIB =  $(USRLIBDIR)/libXt.so$(SOXTREV)
  234.          XTOOLLIB =  -lXt
  235.  
  236.         DEPXMULIB =  $(USRLIBDIR)/libXmu.so$(SOXMUREV)
  237.        XMULIBONLY =  -lXmu
  238.            XMULIB = $(XMULIBONLY)
  239.  
  240.         DEPXAWLIB =  $(USRLIBDIR)/libXaw.so$(SOXAWREV)
  241.            XAWLIB =  -lXaw
  242.  
  243.   DEPEXTENSIONLIB =  $(USRLIBDIR)/libXext.so$(SOXEXTREV)
  244.      EXTENSIONLIB =  -lXext
  245.  
  246.          DEPXILIB =  $(USRLIBDIR)/libXi.so$(SOXINPUTREV)
  247.             XILIB =  -lXi
  248.  
  249.       DEPXNMBXLIB =  $(USRLIBDIR)/libXnmbx.so$(SOXNMBXREV)
  250.          XNMBXLIB =  -lXnmbx
  251.  
  252.         SOXLIBREV = .1
  253.           SOXTREV =
  254.          SOXAWREV =
  255.         SOOLDXREV =
  256.          SOXMUREV =
  257.         SOXEXTREV =
  258.       SOXINPUTREV =
  259.        SOXTESTREV =
  260.        SOXTRAPREV =
  261.          SOPEXREV = SharedPexRev
  262.        SOXNMBXREV =
  263.  
  264.       DEPXAUTHLIB =  $(USRLIBDIR)/libXau.a
  265.          XAUTHLIB =               -lXau
  266.       DEPXDMCPLIB =  $(USRLIBDIR)/libXdmcp.a
  267.          XDMCPLIB =               -lXdmcp
  268.  
  269.        DEPOLDXLIB =  $(USRLIBDIR)/liboldX.a
  270.           OLDXLIB =               -loldX
  271.  
  272.      DEPXTESTLIB =  $(USRLIBDIR)/libXtst.a
  273.         XTESTLIB =               -lXtst
  274.  
  275.           DEPPEXLIB =  $(USRLIBDIR)/libPEX5.a
  276.              PEXLIB =               -lPEX5
  277.  
  278.         DEPPHIGSLIB =  $(USRLIBDIR)/libphigs.a
  279.            PHIGSLIB =               -lphigs
  280.  
  281.        DEPXBSDLIB =  $(USRLIBDIR)/libXbsd.a
  282.           XBSDLIB =               -lXbsd
  283.  
  284.  LINTEXTENSIONLIB =  $(LINTLIBDIR)/llib-lXext.ln
  285.          LINTXLIB =  $(LINTLIBDIR)/llib-lX11.ln
  286.           LINTXMU =  $(LINTLIBDIR)/llib-lXmu.ln
  287.         LINTXTOOL =  $(LINTLIBDIR)/llib-lXt.ln
  288.           LINTXAW =  $(LINTLIBDIR)/llib-lXaw.ln
  289.            LINTXI =  $(LINTLIBDIR)/llib-lXi.ln
  290.           LINTPEX =  $(LINTLIBDIR)/llib-lPEX5.ln
  291.         LINTPHIGS =  $(LINTLIBDIR)/llib-lphigs.ln
  292.         LINTXNMBX =  $(LINTLIBDIR)/llib-lXnmbx.ln
  293.  
  294.           DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  295.  
  296.          DEPLIBS1 = $(DEPLIBS)
  297.          DEPLIBS2 = $(DEPLIBS)
  298.          DEPLIBS3 = $(DEPLIBS)
  299.  
  300. # -------------------------------------------------------------------------
  301. # Imake rules for building libraries, programs, scripts, and data files
  302. # rules:  $XConsortium: Imake.rules,v 1.129 92/05/29 17:01:19 rws Exp $
  303.  
  304. # -------------------------------------------------------------------------
  305. # start of Imakefile
  306.  
  307.         PROGRAMS = xprof
  308.          HEADERS = common.h profile.h
  309.             SRCS = main.c error.c event.c message.c parse.c request.c reply.c \
  310.                    table.c update.c gc.c
  311.             OBJS = main.o error.o event.o message.o parse.o request.o reply.o \
  312.            table.o update.o gc.o
  313.    SYS_LIBRARIES = -lX11 -lm
  314.          VERSION = 1.01
  315.  
  316.         PROGRAM = xprof
  317.  
  318. all:: xprof
  319.  
  320. xprof: $(OBJS) $(DEPLIBS)
  321.      $(RM) $@
  322.     $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
  323.  
  324. install:: xprof
  325.      -@if [ -d $(DESTDIR)$(BINDIR) ]; then set +x; \
  326.         else (set -x; $(MKDIRHIER) $(DESTDIR)$(BINDIR)); fi
  327.     $(INSTALL) -c $(INSTPGMFLAGS)  xprof $(DESTDIR)$(BINDIR)
  328.  
  329. xprof.nr.z : xprof.man
  330.     @if [ -f xprof.man ]; then \
  331.         $(RM) xprof.nr xprof.nr.z && \
  332.         tbl xprof.man | eqn | nroff -man - > xprof.nr && \
  333.         pack -f xprof.nr; \
  334.     fi
  335.  
  336. install.man:: xprof.nr.z
  337.      -@if [ -d $(DESTDIR)$(MANDIR) ]; then set +x; \
  338.         else (set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); fi; \
  339.     if [ -f xprof.man ]; then \
  340.         $(INSTALL) -c $(INSTMANFLAGS) \
  341.             xprof.nr.z $(DESTDIR)$(MANDIR)/xprof.z; \
  342.     fi
  343.  
  344. clean::
  345.     $(RM) xprof.nr xprof.nr.z
  346.  
  347. depend::
  348.     $(DEPEND) $(DEPENDFLAGS) -s "# DO NOT DELETE" -- $(ALLDEFINES) $(DEPEND_DEFINES) -- $(SRCS)
  349.  
  350. lint:
  351.     $(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
  352. lint1:
  353.     $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
  354.  
  355. clean::
  356.     $(RM) $(PROGRAM)
  357.  
  358. tar:
  359.     -rm -f xprof xprof_$(VERSION).tar.Z
  360.     cp Makefile Makefile.bak
  361.     tar chf xprof_$(VERSION).tar Imakefile Makefile $(HEADERS) $(SRCS) xprof.1;
  362.     mv Makefile.bak Makefile
  363.     compress xprof_$(VERSION).tar
  364.  
  365. # -------------------------------------------------------------------------
  366. # common rules for all Makefiles - do not edit
  367.  
  368. emptyrule::
  369.  
  370. clean::
  371.     $(RM_CMD) "#"*
  372.  
  373. Makefile::
  374.     -@if [ -f Makefile ]; then set -x; \
  375.         $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  376.     else exit 0; fi
  377.     $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  378.  
  379. tags::
  380.     $(TAGS) -w *.[ch]
  381.     $(TAGS) -xw *.[ch] > TAGS
  382.  
  383. # -------------------------------------------------------------------------
  384. # empty rules for directories that do not have SUBDIRS - do not edit
  385.  
  386. install::
  387.     @echo "install in $(CURRENT_DIR) done"
  388.  
  389. install.man::
  390.     @echo "install.man in $(CURRENT_DIR) done"
  391.  
  392. Makefiles::
  393.  
  394. includes::
  395.  
  396. # -------------------------------------------------------------------------
  397. # dependencies generated by makedepend
  398.  
  399. # DO NOT DELETE
  400.  
  401. main.o: /usr/include/stdio.h /usr/include/stdlib.h /usr/include/sgidefs.h
  402. main.o: /usr/include/signal.h /usr/include/sys/signal.h
  403. main.o: /usr/include/sys/time.h common.h /usr/include/string.h
  404. main.o: /usr/include/math.h /usr/include/ctype.h /usr/include/values.h
  405. main.o: /usr/include/malloc.h
  406. error.o: /usr/include/stdio.h common.h /usr/include/string.h
  407. error.o: /usr/include/math.h /usr/include/ctype.h /usr/include/values.h
  408. error.o: /usr/include/malloc.h
  409. event.o: /usr/include/stdio.h common.h /usr/include/string.h
  410. event.o: /usr/include/math.h /usr/include/ctype.h /usr/include/values.h
  411. event.o: /usr/include/malloc.h
  412. message.o: /usr/include/stdio.h /usr/include/memory.h common.h
  413. message.o: /usr/include/string.h /usr/include/math.h /usr/include/ctype.h
  414. message.o: /usr/include/values.h /usr/include/malloc.h
  415. parse.o: /usr/include/stdio.h common.h /usr/include/string.h
  416. parse.o: /usr/include/math.h /usr/include/ctype.h /usr/include/values.h
  417. parse.o: /usr/include/malloc.h profile.h /usr/include/X11/Xlib.h
  418. parse.o: /usr/include/sys/types.h /usr/include/sgidefs.h /usr/include/X11/X.h
  419. parse.o: /usr/include/X11/Xfuncproto.h /usr/include/X11/Xosdefs.h
  420. parse.o: /usr/include/stddef.h
  421. request.o: /usr/include/stdio.h common.h /usr/include/string.h
  422. request.o: /usr/include/math.h /usr/include/ctype.h /usr/include/values.h
  423. request.o: /usr/include/malloc.h profile.h /usr/include/X11/Xlib.h
  424. request.o: /usr/include/sys/types.h /usr/include/sgidefs.h
  425. request.o: /usr/include/X11/X.h /usr/include/X11/Xfuncproto.h
  426. request.o: /usr/include/X11/Xosdefs.h /usr/include/stddef.h
  427. reply.o: /usr/include/stdio.h common.h /usr/include/string.h
  428. reply.o: /usr/include/math.h /usr/include/ctype.h /usr/include/values.h
  429. reply.o: /usr/include/malloc.h
  430. table.o: /usr/include/stdio.h common.h /usr/include/string.h
  431. table.o: /usr/include/math.h /usr/include/ctype.h /usr/include/values.h
  432. table.o: /usr/include/malloc.h profile.h /usr/include/X11/Xlib.h
  433. table.o: /usr/include/sys/types.h /usr/include/sgidefs.h /usr/include/X11/X.h
  434. table.o: /usr/include/X11/Xfuncproto.h /usr/include/X11/Xosdefs.h
  435. table.o: /usr/include/stddef.h
  436. update.o: /usr/include/stdio.h /usr/include/X11/Xproto.h
  437. update.o: /usr/include/X11/Xmd.h /usr/include/X11/Xprotostr.h common.h
  438. update.o: /usr/include/string.h /usr/include/math.h /usr/include/ctype.h
  439. update.o: /usr/include/values.h /usr/include/malloc.h profile.h
  440. update.o: /usr/include/X11/Xlib.h /usr/include/sys/types.h
  441. update.o: /usr/include/sgidefs.h /usr/include/X11/X.h
  442. update.o: /usr/include/X11/Xfuncproto.h /usr/include/X11/Xosdefs.h
  443. update.o: /usr/include/stddef.h
  444. gc.o: /usr/include/stdio.h common.h /usr/include/string.h /usr/include/math.h
  445. gc.o: /usr/include/ctype.h /usr/include/values.h /usr/include/malloc.h
  446. gc.o: profile.h /usr/include/X11/Xlib.h /usr/include/sys/types.h
  447. gc.o: /usr/include/sgidefs.h /usr/include/X11/X.h
  448. gc.o: /usr/include/X11/Xfuncproto.h /usr/include/X11/Xosdefs.h
  449. gc.o: /usr/include/stddef.h
  450.